package com.powerbank.usercenter.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.powerbank.usercenter.entity.UserIdentity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 用户实名认证Mapper
 */
@Mapper
public interface UserIdentityMapper extends BaseMapper<UserIdentity> {

    /**
     * 根据用户ID查询实名认证信息
     */
    UserIdentity selectByUserId(@Param("userId") Long userId);

    /**
     * 根据身份证号查询认证信息
     */
    UserIdentity selectByIdCardNo(@Param("idCardNo") String idCardNo);
}